home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 264_01 / getdir.h < prev    next >
Text File  |  1980-01-01  |  768b  |  30 lines

  1. /*
  2.  * getdir.h
  3.  *
  4.  * Definitions helpful for use with getdir.asm (find first & next match).
  5.  * Names are borrowed from Power C.
  6.  */
  7.  
  8. /* File attribute values. */
  9. #define FA_NORMAL    0x00
  10. #define FA_RDONLY    0x01
  11. #define FA_HIDDEN    0x02
  12. #define FA_SYSTEM    0x04
  13. #define FA_LABEL    0x08
  14. #define FA_DIREC    0x10
  15. #define FA_ARCH        0x20
  16. #define FA_ALL        0x16
  17.  
  18. /* The directory entry format as read from the disk. */
  19. struct ffblk {
  20.     char    ff_reserved[21];
  21.     char    ff_attrib;
  22.     /* format of time: hour:5, minute:6, twosec:5 */
  23.     unsigned ff_ftime;
  24.     /* format of date: year:7, month:4,  day:5 */
  25.     unsigned ff_fdate;
  26.     unsigned long ff_fsize;
  27.     char    ff_fname[13];
  28.     char    ff_fill[85];
  29. };
  30.